package com.his.registration.service.impl;

import com.his.dto.DiseaseCondition;
import com.his.registration.mapper.DiseaseMapper;
import com.his.registration.pojo.Disease;
import com.his.registration.pojo.MedicalRecord;
import com.his.registration.service.DiseaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @BelongsProject: workspace-idea
 * @BelongsPackage: com.his.registration.service.impl
 * @Author: ZhangYing
 * @Date: 2023/7/3 11:54
 * @Description:
 */
@Service
public class DiseaseServiceImpl implements DiseaseService {
    @Autowired
    private DiseaseMapper diseaseMapper;

    @Override
    public List<Disease> selectAll() {
        return diseaseMapper.selectAll();
    }

    @Override
    public List<Disease> selectByCondition(DiseaseCondition diseaseCondition) {
        return diseaseMapper.selectByCondition(diseaseCondition);
    }
}
